package com.liferay.service.impl;

import java.util.List;

import com.liferay.dao.impl.ContactDaoImp;
import com.liferay.model.Contact;

public class ContactServiceImpl {
	
	private ContactDaoImp contactDaoImpl;
	
	
	public ContactServiceImpl() {
		
		this.contactDaoImpl = new ContactDaoImp();
	}

	public List<Contact> getAllContact(long pageIndex, long pageSize){
		return contactDaoImpl.getAllContact(pageIndex, pageSize);
	}
		
	public String saveContac(Contact contact){
		return contactDaoImpl.saveContac(contact);
	}
	
	public List<Contact> getContactByID(long contactID){
		return contactDaoImpl.getContactByID(contactID);
	}
}
